const request = require('./config/request')
const {
  BASEAPIAIIIIN
} = require('./config/config')

module.exports = {
  // 获取关键字推荐列表
  getKeywordsSuggestList(data){
    let url = BASEAPIAIIIIN + '/app/searchlog/suggest'
    return request.post({
      url,
      data
    })
  },
  // 获取灵感文章列表
  getArticleList(data){
    let url = BASEAPIAIIIIN + '/app/search/article'
    return request.post({
      url,
      data
    })
  },
  // 获取模型列表
  getModelList(data){
    let url = BASEAPIAIIIIN + '/app/search/model'
    return request.post({
      url,
      data
    })
  },
  // 获取用户列表
  getUserList(data){
    let url = BASEAPIAIIIIN + '/app/search/userinfo'
    return request.post({
      url,
      data
    })
  },
  // 获取设计竞选列表
  getCampaignList(data){
    let url = BASEAPIAIIIIN + '/app/search/campaign'
    return request.post({
      url,
      data
    })
  },
  // 获取设计案例列表
  getDesignList(data){
    let url = BASEAPIAIIIIN + '/app/search/design'
    return request.post({
      url,
      data
    })
  },
  // 获取好物列表
  getGoodsList(data){
    let url = BASEAPIAIIIIN + '/app/search/goods'
    return request.post({
      url,
      data
    })
  },

  //获取我的收藏列表
  getmycollectionbypage(data) {
    let url = BASEAPIAIIIIN + '/app/mycollection/getmycollectionbypage'
    return request.post({
      url,
      data
    })
  },
  //分页查询关注用户的所有发布作品
  getcontentbyfollow(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/getcontentbyfollow'
    return request.post({
      url,
      data
    })
  },
  getbypage(data) {
    let url = BASEAPIAIIIIN + '/app/content/getbypage'
    return request.post({
      url,
      data
    })
  },
  getallbykeyword(data) {
    let url = BASEAPIAIIIIN + '/app/content/getallbykeyword'
    return request.post({
      url,
      data
    })
  },
  getuserbykeyword(data) {
    let url = BASEAPIAIIIIN + '/app/userinfo/getuserbykeyword'
    return request.post({
      url,
      data
    })
  },
  addlikeformcontent(data) {
    let url = BASEAPIAIIIIN + '/app/mylikeauth/addlikeformcontent'
    return request.post({
      url,
      data
    })
  },
  removelikeformcontent(data) {
    let url = BASEAPIAIIIIN + '/app/mylikeauth/removelikeformcontent'
    return request.post({
      url,
      data
    })
  },
  getDetail(data) {
    let url = BASEAPIAIIIIN + '/app/content/getdetail'
    return request.post({
      url,
      data
    })
  },
  addcollectionformcontent(data) {
    let url = BASEAPIAIIIIN + '/app/mycollection/addmycollection'
    return request.post({
      url,
      data
    })
  },
  removecollectionformcontent(data) {
    let url = BASEAPIAIIIIN + '/app/mycollection/removemycollection'
    return request.post({
      url,
      data
    })
  },
  commentsortbyhot(data) {
    let url = BASEAPIAIIIIN + '/app/comment/getfirstcommentsortbyhot'
    return request.post({
      url,
      data
    })
  },
  addlikeformcomment(data) {
    let url = BASEAPIAIIIIN + '/app/mylikeauth/addlikeformcomment'
    return request.post({
      url,
      data
    })
  },
  removelikeformcomment(data) {
    let url = BASEAPIAIIIIN + '/app/mylikeauth/removelikeformcomment'
    return request.post({
      url,
      data
    })
  },
  getsecondcomment(data) {
    let url = BASEAPIAIIIIN + '/app/comment/getsecondcomment'
    return request.post({
      url,
      data
    })
  },
  addfollow(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/addfollow'
    return request.post({
      url,
      data
    })
  },
  removefollow(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/removefollow'
    return request.post({
      url,
      data
    })
  },
  isfollowtouser(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/isfollowtouser'
    return request.post({
      url,
      data
    })
  },
  getbannerinfolist(data) {
    let url = BASEAPIAIIIIN + '/app/banner/getbannerinfolist'
    return request.post({
      url,
      data
    })
  },
  newusergifttelepathyasync(data = {}) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/newusergifttelepathyasync'
    return request.post({
      url,
      data
    })
  },
  selectenabledlist(data = {}) {
    let url = BASEAPIAIIIIN + '/app/community/selectenabledlist'
    return request.post({
      url,
      data
    })
  },
  // 获取活动列表
  getseriespage(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getseriespage'
    return request.post({
      url,
      data
    })
  },
  // 获取活动列表
  getthemedetail(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getthemedetail'
    return request.post({
      url,
      data
    })
  },
  // 获取活动详情
  getseriesdetail(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getseriesdetail'
    return request.post({
      url,
      data
    })
  },
  // 获取参赛作品列表
  getallcontent(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getallcontent'
    return request.post({
      url,
      data
    })
  },
  // 获取普通活动作品详情 
  getcontentdetail(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getcontentdetail'
    return request.post({
      url,
      data
    })
  },
  // 获取校园活动作品详情
  getschooldetail(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getschooldetail'
    return request.post({
      url,
      data
    })
  },
  // 获取金穗奖活动作品详情
  getgoldenspikedetail(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getgoldenspikedetail'
    return request.post({
      url,
      data
    })
  },
  // 获取一级评论列表
  getfirstcomment(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getfirstcomment'
    return request.post({
      url,
      data
    })
  },
  // 获取2级评论列表
  getcreationsecondcomment(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creation/getsecondcomment'
    return request.post({
      url,
      data
    })
  },

  likecomment(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creationauth/likecomment'
    return request.post({
      url,
      data
    })
  },
  cancellikecomment(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creationauth/cancellikecomment'
    return request.post({
      url,
      data
    })
  },
  votecontent(data = {}) {
    let url = BASEAPIAIIIIN + '/app/creationauth/votecontent'
    return request.post({
      url,
      data
    })
  },
}